# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: /data/bkce/open_paas/paas/templates_module/saas/info.html.py
# Compiled at: 2018-01-02 11:59:16
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514865556.081028
_enable_loop = True
_template_filename = '/data/bkce/open_paas/paas/templates/saas/info.html'
_template_uri = 'saas/info.html'
_source_encoding = 'utf-8'
_exports = [u'right_content']

def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]


def _mako_generate_namespaces(context):
    pass


def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base_center.html', _template_uri)


def render_body(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)
        app_info = context.get('app_info', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        app_code = context.get('app_code', UNDEFINED)

        def right_content():
            return render_right_content(context._locals(__M_locals))

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        JS_SUFFIX = context.get('JS_SUFFIX', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n')
        if 'parent' not in context._data or not hasattr(context._data['parent'], 'right_content'):
            context['self'].right_content(**pageargs)
        __M_writer(u'\n\n<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/paas_release.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'"></script>\n<script src="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'js/paas_app.')
        __M_writer(unicode(JS_SUFFIX))
        __M_writer(u'"></script>\n<script type="text/javascript">\n    $(function(){\n        APP_INFO.get_access_info(\'')
        __M_writer(unicode(app_code))
        __M_writer(u"');\n    })\n</script>\n")
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_right_content(context, **pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        CSS_SUFFIX = context.get('CSS_SUFFIX', UNDEFINED)
        app_info = context.get('app_info', UNDEFINED)
        STATIC_VERSION = context.get('STATIC_VERSION', UNDEFINED)
        app_code = context.get('app_code', UNDEFINED)

        def right_content():
            return render_right_content(context)

        STATIC_URL = context.get('STATIC_URL', UNDEFINED)
        SITE_URL = context.get('SITE_URL', UNDEFINED)
        __M_writer = context.writer()
        __M_writer(u'\n    <link rel="stylesheet" type="text/css" href="')
        __M_writer(unicode(STATIC_URL))
        __M_writer(u'css/paas_app.')
        __M_writer(unicode(CSS_SUFFIX))
        __M_writer(u'?v=')
        __M_writer(unicode(STATIC_VERSION))
        __M_writer(u'">\n        <input type="hidden" value="')
        __M_writer(unicode(app_code))
        __M_writer(u'" id="app_code_id">\n        <div class="main_hd">\n            <h4>&nbsp;</h4>\n            <div class="title_tab" id="topTab">\n                <ul class="tab_navs title_tab" data-index="0">\n                    <li data-index="0" class="tab_nav first js_top selected"><a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'saas/info/')
        __M_writer(unicode(app_code))
        __M_writer(u'/">\u57fa\u672c\u4fe1\u606f</a></li>\n\n                    <li data-index="0" class="tab_nav first js_top "><a href="')
        __M_writer(unicode(SITE_URL))
        __M_writer(u'saas/record/')
        __M_writer(unicode(app_code))
        __M_writer(u'/">\u53d1\u5e03\u8bb0\u5f55</a></li>\n                </ul>\n            </div>\n        </div>\n        <div class="ml50 app-info mt30">\n            <div class="t_b mb10">\u57fa\u672c\u4fe1\u606f</div>\n            <div class="row">\n                <div class="col-sm-4 col-xs-4">\n                    <font class="t_grey">\u5e94\u7528ID\uff1a</font>')
        __M_writer(unicode(app_info.get('code', '--')))
        __M_writer(u'\n                </div>\n                <div class="col-sm-8 col-xs-8">\n                    <font class="t_grey">\u5e94\u7528\u540d\u79f0\uff1a</font>')
        __M_writer(unicode(app_info.get('name', '--')))
        __M_writer(u'\n                </div>\n            </div>\n        </div>\n        <hr/>\n        <div class="ml50 app-info">\n            <div class="t_b mb10">\u8bbf\u95ee\u5730\u5740\n            </div>\n            <div class="row">\n                <div class="col-sm-10 col-xs-10">\n                    <font class="t_grey">\u8bbf\u95ee\u5730\u5740\uff1a</font> <span id="prod_access_span"></span>\n                </div>\n            </div>\n        </div>\n        <hr/>\n        <div class="ml50 app-info">\n            <div class="t_b mb10">\u5e94\u7528\u7b80\u4ecb\n            </div>\n            <div class="row">\n                <div class="col-sm-10 col-xs-10">\n                    <div class="introduction">')
        __M_writer(unicode(app_info.get('introduction', '--')))
        __M_writer(u'</div>\n                </div>\n            </div>\n        </div>\n\n        <hr/>\n        <div class="ml50 version-info mt30">\n            <div class="t_b mb10">\u5f53\u524d\u7248\u672c\u4fe1\u606f</div>\n            <div class="row">\n                <div class="col-sm-4 col-xs-4">\n                    <font class="t_grey">\u90e8\u7f72\u7248\u672c\uff1a</font>')
        __M_writer(unicode(app_info.get('version', '--') or '--'))
        __M_writer(u'\n                </div>\n                <div class="col-sm-8 col-xs-8">\n                    <font class="t_grey">\u90e8\u7f72\u6587\u4ef6\uff1a</font>')
        __M_writer(unicode(app_info.get('file_name', '--') or '--'))
        __M_writer(u'\n                </div>\n            </div>\n\n            <div class="row">\n                <div class="col-sm-4 col-xs-4">\n                    <font class="t_grey">\u6587\u4ef6\u5927\u5c0f\uff1a</font>')
        __M_writer(unicode(app_info.get('file_size', '--') or '--'))
        __M_writer(u' (M)\n                </div>\n                <div class="col-sm-8 col-xs-8">\n                    <font class="t_grey">MD5\uff1a</font>')
        __M_writer(unicode(app_info.get('md5', '--') or '--'))
        __M_writer(u'\n                </div>\n            </div>\n\n            <div class="row">\n                <div class="col-sm-10 col-xs-10">\n                    <font class="t_grey">\u914d\u7f6e\u4fe1\u606f\uff1a</font><br>\n                    <pre style="max-height:200px;white-space: normal; border:none; border-radius:inherit; background-color: rgba(244, 244, 244, 0.65);">')
        __M_writer(unicode(app_info.get('settings', '--') or '--'))
        __M_writer(u'</pre>\n                </div>\n            </div>\n\n        </div>\n        <hr/>\n\n        <div class="ml50">\n            <div class="t_b mb10">\u5220\u9664\u5e94\u7528</div>\n            <div class="row">\n                <div class="col-sm-10 col-xs-10">\n')
        if app_info.get('state', '') == 1:
            __M_writer(u'                        <div class="mb5">\u8bf7\u5728\u5220\u9664\u524d\u4e0e\u5176\u4ed6\u540c\u4e8b\u63d0\u524d\u6c9f\u901a\uff0c\u786e\u5b9a<a href="###" onclick="REL_MANAGER.saas_app_del(this, \'')
            __M_writer(unicode(app_info.get('code', '')))
            __M_writer(u'\');" app_code="')
            __M_writer(unicode(app_info.get('code', '')))
            __M_writer(u'" class="hit saas_app_del"><strong>\u5220\u9664</strong></a>!</div>\n')
        else:
            __M_writer(u'                        <div class="mb5">\u53ea\u6709\u672a\u90e8\u7f72\u7684\u5e94\u7528\u624d\u80fd\u5220\u9664\uff0c\u5df2\u90e8\u7f72\u8fc7\u7684\u5e94\u7528\u4e0d\u80fd\u5220\u9664\uff01</div>\n')
        __M_writer(u'                </div>\n            </div>\n        </div>\n        <hr/>\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()